<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>登录成功日志列表 - Powered By Betou</title>
<meta name="author" content="Betou Team" />
<meta name="copyright" content="Betou" />
<script type="text/javascript">var DELETE_URI="o_delete_login_success.jspx";</script>
<#include "../head_list.html"/>
<script type="text/javascript">
$().ready(function() {

	var $listForm = $("#listForm");
	var $filterSelect = $("#filterSelect");
	var $filterOption = $("#filterOption a");
	
	$filterSelect.mouseover(function() {
		var $this = $(this);
		var offset = $this.offset();
		var $menuWrap = $this.closest("div.menuWrap");
		var $popupMenu = $menuWrap.children("div.popupMenu");
		$popupMenu.css({left: offset.left, top: offset.top + $this.height() + 2}).show();
		$menuWrap.mouseleave(function() {
			$popupMenu.hide();
		});
	});
	
	$filterOption.click(function() {
		var $this = $(this);
		$('#days').val( $this.attr('val') );
		$listForm.attr('action', 'o_delete_login_success_batch.jspx');
		$listForm.submit();
		return false;
	});
	
	<#if pagination.totalCount==0>
		$.message("warn", "暂无数据！");
	</#if>

	<#if message??>
		$.message("success", "${message}");
	</#if>
});
</script>
</head>

<body  class="content">
    	<div class="path">
			<a href="../index.jspx">首页</a> &raquo; 登录成功日志列表 <span>(共<span id="pageTotal">${pagination.totalCount!0}</span>条记录)</span>
		</div>
		<form id="listForm" class="clearfix" action="v_list_login_success.jspx" method="post">
       	<div class="bar">
			<div class="buttonWrap">
				<a href="javascript:;" id="deleteButton" class="iconButton disabled"><span class="deleteIcon">&nbsp;</span>删除</a>
				<a href="javascript:;" id="refreshButton" class="iconButton"><span class="refreshIcon">&nbsp;</span>刷新</a>
				<div class="menuWrap">
					<a class="iconButton" id="filterSelect" href="javascript:;">清空<span class="clearIcon">&nbsp;</span></a>
					<div class="popupMenu" style="left: 139px; top: 59px; display: none;">
						<ul class="check" id="filterOption">
							<li><a val="90"   name="filterStatus" href="javascript:;">90天前</a></li>
							<li><a val="30"   name="filterStatus" href="javascript:;">30天前</a></li>
							<li><a val="7"   name="filterStatus" href="javascript:;">7天前</a></li>
							<li><a val="3"   name="filterStatus" href="javascript:;">3天前</a></li>
						</ul>
					</div>
				</div>
				<#include "../pageselect.html"/>
			</div>
			<div class="menuWrap">
				<div class="search">
					<span id="searchPropertySelect" class="arrow">&nbsp;</span>
					<input type="text"  id="searchValue" name="searchValue" value="${searchValue!}" maxlength="200" />
					<button type="submit">&nbsp;</button>
				</div>
				<div class="popupMenu">
					<ul id="searchPropertyOption">
						<li><a href="javascript:;" val="username">用户</a></li>
						<li><a href="javascript:;" val="ip">IP</a></li>
					</ul>
				</div>
			</div>
		</div>
          <table id="listTable" class="list">
			<tr>
				<th class="check"><input type="checkbox" id="selectAll" /></th>
				<th><a href="javascript:;" class="sort" name="username">用户</a></th>
				<th><a href="javascript:;" class="sort" name="title">标题</a></th>
				<th><a href="javascript:;" class="sort" name="time">时间</a></th>
				<th><a href="javascript:;" class="sort" name="ip">IP</a></th>
			</tr>
			<#list pagination.list as c>
				<tr>
					<td>
						<input type="checkbox" name="ids"  value="${c.id!}"/>
					</td>
					<td>${c.username!}</td>	
					<td>${c.title!}</td>	
					<td>
						<span title="${c.time?string('yyyy-MM-dd hh:mm:ss')}">${c.time?string('yyyy-MM-dd hh:mm:ss')}</span>
					</td>
					<td><a href="#" title="${c.ip!}"><@betou_address ip=c.ip /></a></td>
				</tr>
			</#list>
		</table>
		<#include "../list_hidden.html" />
		<#include "../page.html" />
	</form>
    <#include "../footer.html"/>
</body>
</html>
